<template>
  <el-menu  class="el-menu-demo" align="left"
    background-color="#545c64"
            text-color="#fff"
            active-text-color="#409eff"
            router
            :unique-opened="true"
  >

    <el-submenu index="2">
      <template slot="title">
        <span>学生管理</span>
      </template>
      <el-menu-item index="/Class/ClassList">班级列表</el-menu-item>
      <el-menu-item index="/laboratory/laboratoryList">实验室列表</el-menu-item>
      <el-menu-item index="/Class/AddClass">添加班级</el-menu-item>
      <el-menu-item index="/student/StudentList">学生列表</el-menu-item>
      <el-menu-item index="/Student/AddStudent">添加学生</el-menu-item>
    </el-submenu>

<!--    <el-submenu index="3">-->
<!--      <template slot="title">-->
<!--        <span>资讯管理</span>-->
<!--      </template>-->
<!--      <el-menu-item index="/news/NewsList">资讯管理</el-menu-item>-->
<!--      <el-menu-item index="/news/AddNews">添加资讯</el-menu-item>-->
<!--    </el-submenu>-->
<!--    <el-submenu index="4">-->
<!--      <template slot="title">-->
<!--        <span>订单管理</span>-->
<!--      </template>-->
<!--      <el-menu-item index="/order/OrderList">订单列表</el-menu-item>-->
<!--      <el-menu-item index="/order/AddOrder">添加订单</el-menu-item>-->
<!--      <el-menu-item index="/bookLaboratory/selectAll">预约列表</el-menu-item>-->
<!--      <el-menu-item index="/bookLaboratory/add">添加订单</el-menu-item>-->
<!--    </el-submenu>-->
<!--    <el-submenu index="5">-->
<!--      <template slot="title">-->
<!--        <span>评论管理</span>-->
<!--      </template>-->
<!--      <el-menu-item index="/comment/CommentList">评论列表</el-menu-item>-->
<!--      <el-menu-item index="/comment/AddComment">添加评论</el-menu-item>-->
<!--    </el-submenu>-->
<!--    <el-submenu index="6">-->
<!--      <template slot="title">-->
<!--        <span>用户管理</span>-->
<!--      </template>-->
<!--      <el-menu-item index="/user/UserList">用户列表</el-menu-item>-->
<!--      <el-menu-item index="/user/AddUser">添加用户</el-menu-item>-->
<!--    </el-submenu>-->
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  data(){
    return {
      role:sessionStorage.getItem("role")
    }
  }
}
</script>

<style scoped>

</style>
